Get computer name using C#

To get a computer name in C#, use the property MachineName from the Environment Class: C# strComputerName = Environment.MachineName.ToString(); The Environment class is inherited from the System.Object. It provides information about the current platform and environment of the executable application. Related Articles

Auto-Complete ComboBox Using C#

A combo-box is a window form control that developers use for better user experience. It’s a combination of a dropdown list and a text box. It allows the user to select the desired item or directly type a value into the control. To better understand this tutorial, you should know following C# programming areas:  C#... » read more

C# Array Tutorial

An array is a data structure that can store a fixes sized collection of elements that belong to the same data type. For example, an array can store a sequence of numbers that starts from 1 to 10. Each item has an index that is represented by a number. For example: arr [0] represents the... » read more